<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p id="demo"></p>
    <script>
        var a=5;
        var b=6;

        var c=a+b;
        document.write(a+"<br>")
        document.write(b+"<br>")
        document.write(c+"<br>")

        var obj={
            name:"shuangshuang",
            sex:"female",
            age:6,
            favorite:"sleep"
        };
        document.write(obj.name+"<br />");
        document.write(obj["favorite"]);

        document.getElementById("demo").innerHTML=obj.name+" is "+obj.age + ", she likes "+obj.favorite;
    </script>
   
</body>
</html>